var message = "hello world";

var obj = { name: "frank", age: 18, message: "obj message" };
function foo() {
  function bar() {
    with (obj) {
      console.log(message);
    }
  }
  bar();
}

foo();
